﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<CI.Caja.BE.BE_Nota_Debito>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Registrar Diferencia Cierre de Caja
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Registrar Diferencia Cierre de Caja</h2>
    
     <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Create", "NotaDebito", FormMethod.Post))
       {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Nota de Debito</legend>
            
            <div class="editor-label">
               Código de Registro
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.IdNotaDebito, new { disabled = "disabled" })%>
                
            </div>
            
            <div class="editor-label">
                Nro de Acta de Cierre
            </div>
            <div class="editor-field">
                  <%: Html.DropDownList("CodigoCierre", (IEnumerable<SelectListItem>)TempData["cierres"])%>
                  <%: Html.ValidationMessageFor(model => model.IdCierreCaja)%>
            </div>
            
            <div class="editor-label">
                
            </div>
            <div class="editor-field">
            <fieldset>
            <legend>Tipo Diferencia</legend>
             <%: Html.RadioButtonFor(modelo => modelo.IdTipoDiferencia,"1") %> Sobrante

            <%: Html.RadioButtonFor(modelo => modelo.IdTipoDiferencia,"2") %> Faltante
            </fieldset>
           
         
            </div>
            
            <div class="editor-label">
               Monto Diferencia
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NumMonto)%>
                <%: Html.ValidationMessageFor(model => model.NumMonto)%>
            </div>

            <div class="editor-label">
               Observaci&oacute;n
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.TxtObservacion)%>
                <%: Html.ValidationMessageFor(model => model.TxtObservacion)%>
            </div>
            
            <p>
                <input type="submit" value="Registrar" />
            </p>
        </fieldset>
        <p>
        <%: Html.ActionLink("Nuevo", "Create")%> 
        
    </p>
    <% } %>

</asp:Content>
